//
//  CommenAreaView.m
//  UniverseProject
//
//  Created by king on 2021/6/17.
//  Copyright © 2021 Cloud2209. All rights reserved.
//

#import <UITextView+WZB.h>
#import "CommenAreaView.h"

@interface CommenAreaView()


@end


@implementation CommenAreaView



- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        CGFloat padding = 15;
        CGFloat maxW = K_SCREEN_WIDTH - padding * 2;
        
        UITextView *tv = [[UITextView alloc] initWithFrame:CGRectMake(15, 0, K_SCREEN_WIDTH - 80, 34)];
        tv.backgroundColor = [UIColor redColor];
        tv.font = LGFONT(15);
        [self addSubview:tv];
        self.tv = tv;
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    self.tv.centerY = self.height / 2;
}


@end
